//
//  YDPeripheralsTableViewCell.m
//  IngCard
//
//  Created by kf on 2017/5/26.
//  Copyright © 2017年 IngDan. All rights reserved.
//

#import "YDPeripheralsTableViewCell.h"

@implementation YDPeripheralsTableViewCellModel

-(CGFloat) viewHeight
{
    return [[self viewClass] viewHeight:self];
}


-(Class) viewClass
{
    return [YDPeripheralsTableViewCell class];
}


@end

@implementation YDPeripheralsTableViewCell


+(CGFloat)viewHeight:(id<YDViewDataSource>) dataSource
{
    return 64;
}

//子类覆写
-(void) setDataSource:(YDPeripheralsTableViewCellModel*) dataSource
{
    self.textLabel.text = dataSource.name;
    //信号和服务
    self.detailTextLabel.text = [NSString stringWithFormat:@"RSSI:%@",dataSource.RSSI];
}


@end
